from django.urls import path

from apps.assetmgnt import views, devtypeViews, patchviews, discover_views, batchViews


urlpatterns = [
    path('checkauth/', views.check_authenticate),
    path('listdev/', views.list_device),
    path('adddev/', views.add_device),
    path('editdev/', views.edit_device),
    path('deldev/', views.del_device),
    path('savedev/', views.savedev),
    path('rebootdev/', views.reboot_dev),
    path('listdevtype/', devtypeViews.list_devtype),
    path('adddevtype/', devtypeViews.add_devtype),
    path('editdevtype/', devtypeViews.edit_devtype),
    path('deldevtype/', devtypeViews.del_devtype),

    path('snmp_config/', views.snmp_config),
    path('list_discover/', discover_views.list_discover),
    path('del_discover/', discover_views.del_discover),

    path('add_discover/', discover_views.add_discover),
    path('start_job/', discover_views.start_job),
    path('stop_job/', discover_views.stop_job),
    path('asset_merge/', discover_views.asset_merge),
    path('recover_discover/', discover_views.recover_discover),
	
    path('shutdown_dev/', views.shutdown_dev),
    path('devexport/', views.dev_export),
    path('devimport/', views.dev_import)	
]

urlpatterns += [
    path('patchopt/', patchviews.pathch_operation),
    path('rebootdevs/', patchviews.reboot_all_devs),
    path('batch/', batchViews.batch),
    path('batch-upgrade/', batchViews.batch_upgrade),
    path('batch-library/', batchViews.batch_libaray),
    path('batch-reboot/', batchViews.batch_reboot),
]
